package com.snake.springboot.authority.api.service;

import com.snake.springboot.authority.api.model.AuthOperatorRoleModel;
import com.snake.springboot.authority.api.request.AuthorizationQuery;
import com.snake.springboot.authority.api.response.AuthMenuRsp;
import com.snake.springboot.authority.api.response.AuthOperatorRoleRsp;

import java.util.List;
import java.util.Set;

/**
 * 授权服务接口
 */
public interface AuthorizationService {

    int authorization(List<AuthOperatorRoleModel> models);

    int cancelAuthorization(String operatorId);

    Set<String> queryPerms(String operatorId);

    List<AuthOperatorRoleRsp> queryOperatorRole(String operatorId);

    List<AuthMenuRsp> queryAuthMenuTree(String operatorId);

    List<AuthMenuRsp> queryAuthMenuTree(AuthorizationQuery query);
}
